/* 成长故事页面样式 */

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-btn {
    background: linear-gradient(45deg, #ff6b9d, #4ecdc4);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-title {
    font-family: 'Fredoka One', cursive;
    font-size: 24px;
    background: linear-gradient(45deg, #ff6b9d, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* 主容器 */
.story-container {
    min-height: 100vh;
    padding: 100px 20px 120px;
    position: relative;
    z-index: 2;
}

/* 摩天轮背景 */
.ferris-wheel {
    position: fixed;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.3;
}

.wheel {
    width: 200px;
    height: 200px;
    border: 4px solid #ff6b9d;
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
}

.spoke {
    position: absolute;
    width: 2px;
    height: 100px;
    background: #ff6b9d;
    left: 50%;
    top: 0;
    transform-origin: bottom;
}

.spoke:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.spoke:nth-child(2) { transform: translateX(-50%) rotate(45deg); }
.spoke:nth-child(3) { transform: translateX(-50%) rotate(90deg); }
.spoke:nth-child(4) { transform: translateX(-50%) rotate(135deg); }

.gondola {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: counterRotate 20s linear infinite;
}

.gondola-1 { top: -15px; left: 85px; }
.gondola-2 { top: 35px; right: -15px; }
.gondola-3 { bottom: -15px; right: 85px; }
.gondola-4 { bottom: 35px; left: -15px; }
.gondola-5 { top: 85px; left: -15px; }
.gondola-6 { top: 85px; right: -15px; }

@keyframes rotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes counterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* 时间轴 */
.timeline {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-header {
    text-align: center;
    margin-bottom: 60px;
    animation: slideInDown 1s ease-out;
}

.timeline-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3em;
    background: linear-gradient(45deg, #ff6b9d, #4ecdc4, #ffe66d);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 20px;
}

.timeline-subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 600;
}

/* 月份容器 */
.months-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

/* 月份气球 */
.month-balloon {
    position: relative;
    cursor: pointer;
    animation: balloonFloat 3s ease-in-out infinite;
}

.month-balloon:nth-child(odd) {
    animation-delay: 0s;
}

.month-balloon:nth-child(even) {
    animation-delay: 1.5s;
}

.balloon {
    position: relative;
    margin-bottom: 30px;
}

.balloon-body {
    width: 120px;
    height: 150px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.balloon-body::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    filter: blur(10px);
}

.month-text {
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
    position: relative;
}

.birthday-crown {
    font-size: 24px;
    margin-top: 5px;
    animation: bounce 1s infinite;
}

.balloon-string {
    width: 2px;
    height: 80px;
    background: #666;
    margin: 0 auto;
    position: relative;
}

.balloon-string::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -5px;
    width: 12px;
    height: 12px;
    background: #ff6b9d;
    border-radius: 50%;
}

.month-balloon:hover .balloon-body {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.month-balloon.special .balloon-body {
    animation: specialGlow 2s infinite;
    transform: scale(1.2);
}

@keyframes balloonFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes specialGlow {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 30px rgba(255, 107, 157, 0.5);
    }
    50% { 
        box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 50px rgba(255, 107, 157, 0.8);
    }
}

/* 月份故事 */
.month-story {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.month-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #ff6b9d, #4ecdc4, #ffe66d);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

.month-story.show {
    transform: translateY(0);
    opacity: 1;
}

.month-story h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 24px;
    color: #ff6b9d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-story p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.story-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

.birthday-wishes {
    background: linear-gradient(45deg, #ff6b9d, #4ecdc4);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    display: flex;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
}

.nav-button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 15px;
}

.nav-button:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-3px);
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .story-container {
        padding: 80px 15px 100px;
    }
    
    .timeline-title {
        font-size: 2em;
    }
    
    .months-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .balloon-body {
        width: 100px;
        height: 125px;
    }
    
    .month-text {
        font-size: 14px;
    }
    
    .month-story {
        padding: 20px;
    }
    
    .month-story h3 {
        font-size: 20px;
    }
    
    .month-story p {
        font-size: 14px;
    }
    
    .story-image {
        height: 150px;
    }
    
    .ferris-wheel {
        right: -150px;
        opacity: 0.2;
    }
    
    .wheel {
        width: 150px;
        height: 150px;
    }
    
    .gondola {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .months-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .balloon-body {
        width: 80px;
        height: 100px;
    }
    
    .month-text {
        font-size: 12px;
    }
    
    .timeline-title {
        font-size: 1.8em;
    }
    
    .timeline-subtitle {
        font-size: 16px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .nav-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .nav-icon {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 10px;
    }
}

/* 特殊动画 */
.month-balloon.clicked .balloon-body {
    animation: balloonPop 0.5s ease-out;
}

@keyframes balloonPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

/* 故事展开动画 */
.month-story.expanding {
    animation: storyExpand 0.8s ease-out;
}

@keyframes storyExpand {
    0% {
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        max-height: 1000px;
        opacity: 1;
        transform: translateY(0);
    }
}

